import request from '@/utils/request'

// 查询云HIS-医生信息列表
export function listDoctor(query) {
    return request({
        url: '/dataCenter/doctor/list',
        method: 'get',
        params: query
    })
}

// 查询云HIS-医生信息详细
export function getDoctor(id) {
    return request({
        url: '/dataCenter/doctor/' + id,
        method: 'get'
    })
}

// 新增云HIS-医生信息
export function addDoctor(data) {
    return request({
        url: '/dataCenter/doctor',
        method: 'post',
        data: data
    })
}

// 修改云HIS-医生信息
export function updateDoctor(data) {
    return request({
        url: '/dataCenter/doctor',
        method: 'put',
        data: data
    })
}

// 删除云HIS-医生信息
export function delDoctor(id) {
    return request({
        url: '/dataCenter/doctor/' + id,
        method: 'delete'
    })
}
